package com.naxian.service.recruit;




import com.github.pagehelper.PageInfo;
import com.naxian.pojo.Company;
import com.naxian.pojo.Mycollection;
import com.naxian.pojo.Recruit;
import com.naxian.vo.index.IndexVO;

import java.util.List;

/**
 * Created by Administrator on 2019/10/8.
 */
public interface RecruitService {
    public boolean add(Recruit recruit);//添加到数据库操作
    //根据主键查询
    public Recruit getByRecruitId(int recId);
    //根据招聘id获得公司所有的招聘信息
    public List<Recruit> getRecruitByRecruitId(int recId);
    //根据招聘id获得公司的信息
    public Company getCompanyByRecruitId(int recId);
    //查询所有简历
    public List<Recruit> getAll();
    //修改简历
    public boolean update(Recruit recruit);
    //删除简历
    public boolean delete(int recId);


    public PageInfo<Recruit> getByExample(int pageNum, int pagetSize, String salary, String education);

}
